package com.manager.model;

import com.manager.common.annotation.excel.*;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import org.hibernate.annotations.Type;

import java.io.Serializable;

/**
 * 
* <p>Title: Operation_Log</p>
* <p>Description: 操作日志模型</p>
* @author z.q.k
* @date 上午11:25:10
 */
@SuppressWarnings("all")
@Entity
@Table(name="tb_operation_log")
public class Operation_Log extends AllId implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private String userId;
	
	@Excel(desc="用户名称")
	private String userName;//用户名称
	
	@Excel(desc="角色名称")
	private String roleName;//角色名称
	
	@Excel(desc="IP地址")
	private String ip;//IP地址
	
	@Excel(desc="操作类型")
	private String operationType; //操作类型
	
	@Excel(desc="操作表")
	private String tableName; //操作表
	
	@Excel(desc="操作内容")
	private String operationContent;//操作内容

	@Excel(desc="操作结果")
	private String operationResult; //操作结果 0 : 失败 ， 1： 成功
	
	@Excel(desc="开始时间")
	private String startTime; //开始时间(查询时用)
	
	@Excel(desc="结束时间")
	private String endTime; //结束时间(查询时用)
	
	@Excel(desc="耗时")
	private String proceedTime;
	
	@Excel(desc="辅助信息")
	private String assistContents;//辅助信息
	
	@Excel(desc = "日志类型", dic = @ExcelDic( typeMap = { @ExcelTypeMap(val =  "0" , text = "其他"),@ExcelTypeMap(val =  "1" , text = "合同"),
			@ExcelTypeMap(val =  "2", text = "项目") }))
	private String logType;// 用于标注当前日志所属的类型如：合同，项目等
	
	private String dataId; //存放数据的ID信息
	
	private String parentId; //存放数据的父级数据
	
	private String temp1;
	
	private String temp2;
	
	private String temp3;
	
	public String getAssistContents() {
		return assistContents;
	}

	public void setAssistContents(String assistContents) {
		this.assistContents = assistContents;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getOperationContent() {
		return operationContent;
	}

	public void setOperationContent(String operationContent) {
		this.operationContent = operationContent;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getOperationResult() {
		return operationResult;
	}

	public void setOperationResult(String operationResult) {
		this.operationResult = operationResult;
	}

	public String getTemp1() {
		return temp1;
	}

	public void setTemp1(String temp1) {
		this.temp1 = temp1;
	}

	public String getTemp2() {
		return temp2;
	}

	public void setTemp2(String temp2) {
		this.temp2 = temp2;
	}

	public String getTemp3() {
		return temp3;
	}

	public void setTemp3(String temp3) {
		this.temp3 = temp3;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getProceedTime() {
		return proceedTime;
	}

	public void setProceedTime(String proceedTime) {
		this.proceedTime = proceedTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	
}
